package com.xs.ahoi.hcxs.model.vo;

import com.xs.ahoi.hcxs.model.Book;

/**
 * 批量管理listview 的 item
 *
 * @author fuhuichao
 * @date 2020-02-01 17:38
 */
public class BatchBookItemVO {

    private Integer bookId;
    private String path;
    private String bookName;
    private String bookSize;
    private String percent;

    public static BatchBookItemVO convertFromBook(Book book) {
        BatchBookItemVO vo = new BatchBookItemVO();
        vo.setBookId(book.getId());
        vo.setPath(book.getPath());
        vo.setBookName(book.getName());
        vo.setBookSize(book.getSize());
        vo.setPercent(book.getPercent());
        return vo;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookSize() {
        return bookSize;
    }

    public void setBookSize(String bookSize) {
        this.bookSize = bookSize;
    }

    public String getPercent() {
        return percent;
    }

    public void setPercent(String percent) {
        this.percent = percent;
    }
}
